.class public Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;
.super Lcom/estrongs/android/pop/app/cleaner/SimpleViewBehavior;
.source "SimpleTextViewCleanBehavior.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/estrongs/android/pop/app/cleaner/SimpleViewBehavior<",
        "Landroid/widget/TextView;",
        ">;"
    }
.end annotation


# instance fields
.field private D:F

.field private E:F

.field private F:I

.field private G:I

.field private H:I

.field private I:I

.field private J:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    .line 1
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/pop/app/cleaner/SimpleViewBehavior;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 v0, -0x1

    .line 2
    iput v0, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->H:I

    const/4 v0, 0x0

    .line 3
    iput v0, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->I:I

    const-string v0, ""

    .line 4
    iput-object v0, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->J:Ljava/lang/String;

    .line 5
    sget-object v0, Lcom/estrongs/android/pop/n;->EasyCoordinatorView:[I

    invoke-virtual {p1, p2, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;

    move-result-object p1

    const/16 p2, 0xd

    const/high16 v0, 0x4f000000

    .line 6
    invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getDimension(IF)F

    move-result p2

    iput p2, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->D:F

    const/16 p2, 0xc

    const v0, 0x7fffffff

    .line 7
    invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->F:I

    return-void
.end method


# virtual methods
.method public bridge synthetic a(Landroid/view/View;F)V
    .locals 0

    .line 2
    check-cast p1, Landroid/widget/TextView;

    invoke-virtual {p0, p1, p2}, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->a(Landroid/widget/TextView;F)V

    return-void
.end method

.method public a(Landroid/widget/TextView;F)V
    .locals 7

    .line 6
    invoke-super {p0, p1, p2}, Lcom/estrongs/android/pop/app/cleaner/SimpleViewBehavior;->a(Landroid/view/View;F)V

    .line 7
    iget v0, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->D:F

    const/high16 v1, 0x4f000000

    cmpl-float v1, v0, v1

    if-nez v1, :cond_0

    iget v0, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->E:F

    goto :goto_0

    :cond_0
    iget v1, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->E:F

    sub-float/2addr v0, v1

    mul-float v0, v0, p2

    add-float/2addr v0, v1

    :goto_0
    const/4 v1, 0x0

    .line 8
    invoke-virtual {p1, v1, v0}, Landroid/widget/TextView;->setTextSize(IF)V

    .line 9
    iget v0, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->F:I

    const v2, 0x7fffffff

    if-eq v0, v2, :cond_1

    iget v0, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->G:I

    if-eqz v0, :cond_1

    .line 10
    new-instance v0, Landroid/animation/ArgbEvaluator;

    invoke-direct {v0}, Landroid/animation/ArgbEvaluator;-><init>()V

    .line 11
    iget v2, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->G:I

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    iget v3, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->F:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v0, p2, v2, v3}, Landroid/animation/ArgbEvaluator;->evaluate(FLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    .line 12
    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    .line 13
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->J:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    const-string v2, "\n"

    if-nez v0, :cond_2

    .line 14
    invoke-virtual {p1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->J:Ljava/lang/String;

    .line 15
    invoke-virtual {v0, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->H:I

    :cond_2
    float-to-double v3, p2

    const-wide/high16 v5, 0x3ff0000000000000L    # 1.0

    cmpl-double p2, v3, v5

    if-nez p2, :cond_4

    .line 16
    iget p2, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->H:I

    const/4 v0, -0x1

    if-eq p2, v0, :cond_3

    .line 17
    iget-object v0, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->J:Ljava/lang/String;

    add-int/lit8 p2, p2, -0x1

    invoke-virtual {v0, v1, p2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result p2

    int-to-float p2, p2

    iget v0, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->E:F

    mul-float p2, p2, v0

    float-to-int p2, p2

    iput p2, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->I:I

    .line 18
    iget-object v0, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->J:Ljava/lang/String;

    const-string v3, ""

    invoke-virtual {v0, v2, v3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    div-int/2addr p2, v0

    int-to-float p2, p2

    .line 19
    invoke-virtual {p1, v1, p2}, Landroid/widget/TextView;->setTextSize(IF)V

    .line 20
    iget-object p2, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->J:Ljava/lang/String;

    invoke-virtual {p2, v2, v3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 21
    :cond_3
    iget-object p2, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->J:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 22
    :cond_4
    iget-object p2, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->J:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_1
    return-void
.end method

.method protected bridge synthetic a(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;)V
    .locals 0

    .line 1
    check-cast p2, Landroid/widget/TextView;

    invoke-virtual {p0, p1, p2, p3}, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->a(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/widget/TextView;Landroid/view/View;)V

    return-void
.end method

.method protected a(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/widget/TextView;Landroid/view/View;)V
    .locals 0

    .line 3
    invoke-super {p0, p1, p2, p3}, Lcom/estrongs/android/pop/app/cleaner/SimpleViewBehavior;->a(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;)V

    .line 4
    invoke-virtual {p2}, Landroid/widget/TextView;->getTextSize()F

    move-result p1

    iput p1, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->E:F

    .line 5
    invoke-virtual {p2}, Landroid/widget/TextView;->getCurrentTextColor()I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/pop/app/cleaner/SimpleTextViewCleanBehavior;->G:I

    return-void
.end method
